<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <title>视频应用秘钥管理</title>
    <link href="../lib/layui/css/layui.css" rel="stylesheet" type="text/css" media="screen" />
    <script src="../lib/jquery-3.3.1.min.js" type="text/javascript" ></script>
    <script src="../lib/layui/layui.js" type="text/javascript" ></script>
    <script src="../js/cdys7lives/secretList.js" type="text/javascript" ></script>
    <style>
        /*body,thead th,tbody, .layui-layer, .layui-layer-content, .layui-form,.layui-table-box,*/
        /*.layui-input, .layui-layer-dialog{*/
        /*    background-color: rgb(23,34,53) !important;*/
        /*}*/
        /*label, .layui-table-cell, .layui-layer-title,  li,*/
        /*.layui-layer-setwin,.layui-layer-content,.layui-icon*/
        /*,.layui-form-radio div,.layui-input,.layui-table-page span,button{*/
        /*    color: rgb(173, 178, 187) !important;*/
        /*}*/
        /*.layui-form-select dd{*/
        /*    color: black;*/
        /*}*/

    </style>
</head>
<body class="layui-layout-body" style="background-color: white">
    <div>
        <form class="layui-form">
            <div class="layui-inline">
                <label>应用AppKey:</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <input class="layui-input" name="appKey" autocomplete="off"
                           placeholder="应用app key" />
                </div>
                <label>启用状态:</label>
                <div class="layui-input-inline" style="width: 150px;">
                    <select name="isEnabled" id="isEnabled" lay-filter="isEnabled">
                        <option value="">全部</option>
                        <option value="1">启用</option>
                        <option value="2">禁用</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline" style="margin-left: 10px;margin-top: 5px">
                <button class="layui-btn" lay-submit="" lay-filter="querySecret" >查询</button>
                <button class="layui-btn" type="reset" >重置</button>
                <button class="layui-btn" type="button" id="addSecret">新增</button>
                <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="enable">启用</button>
                <button class="layui-btn layui-btn-danger" lay-submit="" lay-filter="disable">禁用</button>
            </div>
        </form>
        <table id="secretRecordTable" lay-filter="secretRecordTable">
        </table>
    </div>
</body>
<div id="addSecretDiv" style="display: none">
    <form class="layui-form" id="secret_form" lay-filter="secret_form" style="margin-top:1%">
        <input type="hidden" id="id" name="id"/>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">社区名称:</label>
                <div class="layui-input-inline" style="width: 230px">
                    <select lay-verify="required" name="communityId" id="communityId" lay-filter="communityId" lay-search="" >
                    </select>
                </div>
                <label class="layui-form-label" style="width: 100px">开放平台类型</label>
                <div class="layui-input-inline">
                    <input type="radio" name="monitorPlatform" value="萤石云" title="萤石云" checked>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">应用AppKey</label>
                <div class="layui-input-block">
                    <input type="text" lay-verify="required" name="appKey" id="appKey" autocomplete="off" placeholder="请输入应用AppKey" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">应用Secret</label>
                <div class="layui-input-block">
                    <input type="text" lay-verify="required" name="appSecret" id="appSecret" autocomplete="off" placeholder="请输入应用Secret" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <input type="text" name="remark" id="remark" autocomplete="off" placeholder="备注" class="layui-input">
                </div>
            </div>
        </div>
        <div class='layui-input-block' >
            <button class="layui-btn" id="saveSecret" lay-submit="" lay-filter="saveSecret">保存</button>
            <button class="layui-btn" type="button" id="cancelAdd">取消</button>
        </div>
    </form>
</div>
</html>